//
//  BaseDataRequest.h
//  JiuLe
//
//  Created by 黄鑫 on 16/9/6.
//  Copyright © 2016年 Fine. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>

//正式环境
#define BASEURL @"http://www.jiuletech.com:8088/index.php/"

//测试环境
//#define BASEURL @"http://59.172.105.130:8088/index.php/"


@interface BaseDataRequest : NSObject

//用户登录
- (void)userLoginName:(NSString *)name password:(NSString *)password withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;
//手机号登陆
- (void)loginUserPhone:(NSString *)phone verificationCode:(NSString *)code withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;
//获取登陆验证码
- (void)getverificationCodePhone:(NSString *)phone withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;
//激活接口
- (void)doactive:(NSMutableDictionary *)doactive withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//修改用户名
- (void)modifyUserName:(NSString *)newName withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//修改密码
- (void)modifyUserPassward:(NSString *)newPassword oldPassword:(NSString *)oldPassword withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//修改手机号
- (void)modifyUserPhone:(NSString *)phone withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//查询用户信息
- (void)getUserInfoWithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//修改紧急联系人
- (void)modifyEmergencyNmae:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//修改身体资料
- (void)modifyBodyProfole:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求人群分类
- (void)populationWithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//修改收货地址
- (void)modifyShippingAddress:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//获取久乐表基本信息接口
- (void)queryWatchinfowithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//意见反馈
- (void)feedback:(NSString *)text imageArr:(NSMutableArray *)arrImage withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//意见反馈图片上传
- (void)feedbackPicture:(UIImage *)image withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求健康数据
- (void)getHealthData:(NSString *)date withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求详细健康数据
- (void)getDetailedHealthData:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;


//请求预警信息
- (void)getEarlyWarningData:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求预警类型
- (void)requestEarlyWarningType:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求预警详情信息
- (void)getEarlyWarningDetailsData:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求修改用户手机验证码
- (void)getVerificationCode:(NSString *)verificationCode WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//修改用户绑定手机
- (void)changeBindYourPhone:(NSString *)phone code:(NSString *)code withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求闹钟数据
- (void)getAlarmClockWithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//设置闹钟
- (void)setAlarmClock:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//删除闹钟
- (void)delegateAlarmClock:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//图片上传
- (void)uploadPicture:(UIImage *)image withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//获取用户积分
- (void)getGrades:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求订单列表
- (void)getOrderLiset:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求订单详情
- (void)getOrderDetail:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//取消订单
- (void)cancelOrder:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//确认收货
- (void)sureReceipt:(NSString *)orderID withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//判断文章是否被收藏
- (void)getArticlecollectStart:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求文章列表
- (void)getArticleList:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//文章收藏
- (void)articleCollect:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//文章收藏列表
- (void)articleCollectList:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//查询用户最新的健康数据
- (void)getNewestDetailedHealthData:(NSMutableDictionary *)dict WithBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//获取健康排行
- (void)getRankingList:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//获取健康报告统计数据
- (void)getStatistice:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//获取秘钥
- (void)getEncryptedData:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//获取签到信息
- (void)getCheckInfo:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//签到
- (void)requestCheck:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//活动已读接口
- (void)setActivityInfo:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求活动列表
- (void)requestActivitList:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//请求推送消息
- (void)requestPushMessages:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//获取最新推送消息
- (void)requestNotice:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;

//已读信息
- (void)readPushMessages:(NSMutableDictionary *)dict withBlock:(void (^)(id responseObject, NSString *status, NSError *error))block;
@end
